home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / Filezilla Server / FileZilla_Server-0_9_41.exe / source / interface / Options.h < prev    next >
C/C++ Source or Header  |  2011-11-06  |  2KB  |  74 lines

  1. // FileZilla Server - a Windows ftp server
  2.  
  3. // Copyright (C) 2002-2004 - Tim Kosse <tim.kosse@gmx.de>
  4.  
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU General Public License
  7. // as published by the Free Software Foundation; either version 2
  8. // of the License, or (at your option) any later version.
  9.  
  10. // This program is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. // GNU General Public License for more details.
  14.  
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software
  17. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18.  
  19. #if !defined(AFX_OPTIONS_H__3E60F2D3_99F3_4271_92A3_2CF71AF62731__INCLUDED_)
  20. #define AFX_OPTIONS_H__3E60F2D3_99F3_4271_92A3_2CF71AF62731__INCLUDED_
  21.  
  22. #if _MSC_VER > 1000
  23. #pragma once
  24. #endif // _MSC_VER > 1000
  25. // Options.h : Header-Datei
  26. //
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // Dialogfeld COptions 
  30.  
  31. #define IOPTION_STARTMINIMIZED 1
  32. #define IOPTION_LASTSERVERADDRESS 2
  33. #define IOPTION_LASTSERVERPORT 3
  34. #define IOPTION_LASTSERVERPASS 4
  35. #define IOPTION_ALWAYS 5
  36. #define IOPTION_USERSORTING 6
  37. #define IOPTION_FILENAMEDISPLAY 7
  38.  
  39. #define IOPTIONS_NUM 7
  40.  
  41. class COptionsDlg;
  42. class COptions
  43. {
  44.     friend COptionsDlg;
  45. // Konstruktion
  46. public:
  47.     CString GetOption(int nOptionID);
  48.     __int64 GetOptionVal(int nOptionID);
  49.     COptions();   // Standardkonstruktor
  50.     virtual ~COptions();
  51.     void SetOption(int nOptionID, CString value);
  52.     void SetOption(int nOptionID, __int64 value);
  53.     
  54. protected:
  55.     static bool IsNumeric(LPCTSTR str);
  56.     
  57.     struct t_OptionsCache
  58.     {
  59.         BOOL bCached;
  60.         CTime createtime;
  61.         int nType;
  62.         CString str;
  63.         _int64 value;
  64.     } m_OptionsCache[IOPTIONS_NUM];
  65.     void Init();
  66.     static BOOL m_bInitialized;
  67. };
  68.  
  69.  
  70. //{{AFX_INSERT_LOCATION}}
  71. // Microsoft Visual C++ fⁿgt unmittelbar vor der vorhergehenden Zeile zusΣtzliche Deklarationen ein.
  72.  
  73. #endif // AFX_OPTIONS_H__3E60F2D3_99F3_4271_92A3_2CF71AF62731__INCLUDED_
  74.